<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">消费记录</h4>
    <!--<button ui-sref="app.consumerTop" class="btn btn-back btn-dark btn-sm btn-rounded">-->
        <!--返回-->
    <!--</button>-->
</div>
<div class="wrapper" ng-controller="userConsumerCtrl">
    <div class="panel panel-default padder-v padder-md">
        <div class="clearfix m-b-sm">
            <div class="col-sm-1 pull-right no-padder">
                <div class="text-right">
                    <button class="btn btn-success m-n" ng-click="openExportDate()">导出报表</button>
                </div>
            </div>
        </div>
        <div class="fa-border">
            <div class="padder-v">
                <table class="table m-b-none table-striped table-responsive">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>用户信息</th>
                            <th>订单编号</th>
                            <th>支付方式</th>
                            <th>消费金额</th>
                            <th>消费时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in list">
                            <td>{{$index+1}}</td>
                            <td>昵称：{{item.userName}}<br>
                                联系方式：{{item.userMobile}}</td>
                            <td>{{item.shopOrderNumber}}</td>
                            <td ng-if="item.way != 0"></td>
                            <td ng-if="item.way == 0">微信</td>
                            <td>{{item.money}}</td>
                            <td>{{item.payTime}}</td>
                            <td>
                                <button class="btn btn-sm btn-success" ui-sref="app.ordersGoodsView({id:item.orderId})">查看订单详情</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div ng-if="userConsumer.length<=0 && !app.loading" class="padder-v text-center">
                    <span class="h6">~未搜索到任何数据~</span>
                </div>
                <div>
                    <circle-loading ng-if="app.loading"></circle-loading>
                </div>
            </div>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-4 hidden-xs">
                </div>
                <div class="col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>